import methods from '../request.js'

let homeApi = {
	/* 判断能否跑步 */
	judgeTime(params) {
		return methods.get('/rStatistic/inTime',params)
	},
	/* 跑步目标  获取首页的信息 */
    selectMobileRun(params) {
        return methods.get('/rStatistic/nowWeekSta',params);
    },
	/* 提交跑步数据 */
    commitData(params) {
        return methods.post('/rStatistic/addStatisic',params);
    },
	/* 获取最新的通知 */
	getNotification(params){
		return methods.get('/message/findMsg')
	}
}
export default homeApi